<?php

use Illuminate\Database\Seeder;

class UsersTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
     public function run()
    {
         $data = [];
         For($i=0;$i< 100;$i++)
         {
             $temp['name'] = str_random(10);
             $temp['password'] = Crypt::encrypt('123');
             $temp['phone'] = "1".str_random(10);
             $temp['email'] = str_random(5).'@qq.com';
             $temp['img'] = str_random(10).'.jpg';
             $temp['status'] = 1;
             $data[] = $temp;
         }
        DB::table('home_users')->insert($data);
    }
}
